﻿CREATE TABLE [dbo].[PersonMark]
(
	[Mark] [uniqueidentifier] NOT NULL, -- FK to Mark
	[Person] [uniqueidentifier] NOT NULL, -- FK to Person

    [IsDeleted] [bit] DEFAULT 0 NOT NULL,
	[CreatedBy] [uniqueidentifier] NOT NULL, -- FK to Person
	[CreatedOn] [datetime] DEFAULT getdate() NOT NULL,
    [LastChanged] [datetime] DEFAULT getdate() NOT NULL,
	[LastChangedBy] [uniqueidentifier] NOT NULL, -- FK to Person
	[TimeStamp] [timestamp] NOT NULL

CONSTRAINT [PK_PersonMark] PRIMARY KEY CLUSTERED 
(
	[Mark] ASC,
	[Person] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO